<%@page import="com.wowangz.cms.common.utils.DataDictionaryManage"%>
<%@page import="com.wowangz.cms.common.utils.DictTypeConstant"%>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/pageHead.jsp"%>
<script type="text/javascript">
	$(document).ready(function() {
		$("#butReturn").click(function(){
			parent.document.location.reload();
		    $.fn.closeIssWindow();
		});
	});
	//flag == 1同意 flag == 2 拒绝
	function approve(flag){
		$.getJSON('${systemctx}/dailyoperation/store/approve.web?flag='+flag + "&id=${store.id}",function(data){
			data = eval("(" + data + ")");
			if(data==200){
				parent.document.location.reload();
			    $.fn.closeIssWindow();
			}else{
				messageAlert("<%=MessageResourcesUtils.getMessage(request, "dailyoperation.store.apply.exception")%>");
				return false;
			}
		});
	}
</script>
<form name="form1" id="form1" action="" method="post">
	<div class="pageMain">
		<div class="pageTitle">
			<%=MessageResourcesUtils.getMessage(request, "systemmanage.storemanagement.title")%>
			<span></span>
			<%=MessageResourcesUtils.getMessage(request, "dailyoperation.store.manage.title") %>
			<span></span>
			<%=MessageResourcesUtils.getMessage(request, "dailyoperation.store.detail.title") %>
		</div>
		<div class="pageBody">
			<div class="form-group">
					<ul>
						<li class="paymentHeadStyle liw">
							<i></i>
							<label>
								<%=MessageResourcesUtils.getMessage(request, "dailyoperation.store.register.info") %>
							</label>
						</li>
					</ul>
					<ul>
						<li>
							<i></i>
							<label>
								<%=MessageResourcesUtils.getMessage(request,"dailyoperation.store.column.number") %>
							</label>
							<span>${store.number}</span>
						</li>
						<li>
							<i></i>
							<label>
								<%=MessageResourcesUtils.getMessage(request,"dailyoperation.store.column.name") %>
							</label>
							<span>${store.name}</span>
						</li>
					</ul>
					<ul>
						<li>
							<i></i>
							<label>
								<%=MessageResourcesUtils.getMessage(request,"dailyoperation.store.column.corporate") %>
							</label>
							<span>${store.corporate}</span>
						</li>
						<li>
							<i></i>
							<label>
								<%=MessageResourcesUtils.getMessage(request,"dailyoperation.store.column.quality") %>
							</label>
							<span>${store.qualityStr}</span>
							<%-- ${store.quality} --%>
						</li>
					</ul>
					<ul>
						<li>
							<i></i>
							<label>
								<%=MessageResourcesUtils.getMessage(request,"dailyoperation.store.column.population") %>
							</label>
							<span>${store.populationStr}</span>
							<%-- ${store.population} --%>
						</li>
						<li>
							<i></i>
							<label>
								<%=MessageResourcesUtils.getMessage(request,"dailyoperation.store.column.pCity") %>
							</label>
							 <span>${store.address}</span>
						</li>
					</ul>
					<ul>
						<li>
							<i></i>
							<label>
								<%=MessageResourcesUtils.getMessage(request,"dailyoperation.store.column.industry") %>
							</label>
							 <span>${store.industryStr}</span>
						</li>
					</ul>
					<ul>
						<li>
							<i></i>
							<label>
								<%=MessageResourcesUtils.getMessage(request,"dailyoperation.store.column.description") %>
							</label>
							<span>${store.description}</span>
						</li>
					</ul>
					<ul>
						<li>
							<i></i>
							<label>
								<%=MessageResourcesUtils.getMessage(request, "dailyoperation.store.contacts.info") %>
							</label>
						</li>
					</ul>
					<ul>
						<li>
							<i></i>
							<label>
								<%=MessageResourcesUtils.getMessage(request,"dailyoperation.store.column.realname") %>
							</label>
							<span>${store.realname}</span>
						</li>
						<li>
							<i></i>
							<label>
								<%=MessageResourcesUtils.getMessage(request,"dailyoperation.store.column.telephonenumber") %>
							</label>
							<span>${store.telephonenumber}</span>
						</li>
					</ul>
					<ul>
						<li>
							<i></i>
							<label>
								<%=MessageResourcesUtils.getMessage(request,"dailyoperation.store.column.email") %>
							</label>
							<span>${store.email}</span>
						</li>
						<li>
							<i></i>
							<label>
								<%=MessageResourcesUtils.getMessage(request,"dailyoperation.store.column.phonenumber") %>
							</label>
							<span>${store.phonenumber}</span>
						</li>
					</ul>
			</div>
			<div class="button-group">
				<c:if test="${flag==1}">
					<input type="button" onclick="approve('1')" class="btn btn-default" id="butApprove" value='<%=MessageResourcesUtils.getMessage(request, "common.button.pass") %>' />
					<input type="button" onclick="approve('2')" class="btn btn-default" id="butRefused" value='<%=MessageResourcesUtils.getMessage(request, "common.button.refuse") %>' />
				</c:if>
				<input type="button" class="btn btn-default" id="butReturn" name="butReturn" value='<%=MessageResourcesUtils.getMessage(request, "common.button.back") %>' />
			</div>
		</div>
	</div>
</form>

<%-- 引入页面尾 --%>
<%@ include file="/pageFloor.jsp"%>